package com.example.personaldemo.mapper;

import com.example.personaldemo.entity.Order;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OrderMapper {

    @Insert("INSERT INTO `order`(order_id,destination,delivery_address,shipper,shipper_id,consignee,goods)" +
            " VALUES (#{order_id}," +
            "#{destination},#{delivery_address},#{shipper},#{shipper_id},#{consignee},#{goods})")
    int save_order(Order order);
}
